package org.hypnus.e.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTag;

import org.hypnus.e.util.EConstants;
import org.hypnus.e.util.TagUtil;

public class TextTag extends AbstractTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public int doStartTag() throws JspException {
		TagUtil tagUtil = TagUtil.getInstance();
		StringBuilder builder = tagUtil.prepareAttribute(this, EConstants.INPUT);
		tagUtil.write(pageContext, builder.toString());
		return BodyTag.EVAL_BODY_INCLUDE;
	}

	@Override
	public void release() {
		super.release();
		this.type=null ;

	}

	
	
}
